package com.jin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jin.bean.TruckRecord;

import java.util.Date;
import java.util.List;

/**
 * Created on 2025/2/24.
 * @author Zhongyuan Jin
 */
public interface TruckRecordService
        extends IService<TruckRecord> {


    Page<TruckRecord> getTruckRecordsByConditions(
            String gate,
            String plate,
            String belonging,
            Date startTime,
            Date endTime,
            int page,
            int size);



    // 新增方法：根据单位ID查询矿车载量信息
    Page<TruckRecord> getTruckRecordsByUnitId(Integer unitId, int page, int size);


    // TruckRecordService.java
    List<TruckRecord> getTruckRecordsByConditionsForExport(String gate, String plate, String belonging, Date startTime, Date endTime);

}
